package com.deanlib.cabinet.data.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Dean on 2022/7/5
 */
public class Key implements Parcelable {
    public String appId;
    public String appKey;
    public String appSecret;
    public String extend1;
    public String extend2;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.appId);
        dest.writeString(this.appKey);
        dest.writeString(this.appSecret);
        dest.writeString(this.extend1);
        dest.writeString(this.extend2);
    }

    public void readFromParcel(Parcel source) {
        this.appId = source.readString();
        this.appKey = source.readString();
        this.appSecret = source.readString();
        this.extend1 = source.readString();
        this.extend2 = source.readString();
    }

    protected Key(Parcel in) {
        this.appId = in.readString();
        this.appKey = in.readString();
        this.appSecret = in.readString();
        this.extend1 = in.readString();
        this.extend2 = in.readString();
    }

    public static final Parcelable.Creator<Key> CREATOR = new Parcelable.Creator<Key>() {
        @Override
        public Key createFromParcel(Parcel source) {
            return new Key(source);
        }

        @Override
        public Key[] newArray(int size) {
            return new Key[size];
        }
    };

}
